/*
package com.dycong.common.common;

import feign.Feign;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.web.WebMvcRegistrations;
import org.springframework.boot.autoconfigure.web.WebMvcRegistrationsAdapter;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.AnnotatedElementUtils;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

*/
/**
 * <dt>Feign的配置类</dt>
 * 
 * @author yanbo
 *//*

@Configuration
@ConditionalOnClass(Feign.class)
public class FeignConfig {

	@Bean
	public WebMvcRegistrations feignWebRegistrations() {
		return new WebMvcRegistrationsAdapter() {
			@Override
			public RequestMappingHandlerMapping getRequestMappingHandlerMapping() {
				return new FeignRequestMappingHandlerMapping();
			}
		};
	}

	*/
/**
	 * todo 对拥有的@FeignClient注解的方法,不映射成资源URI,避免歧义
	 * 
	 * @author yanbo
	 *//*

	private static class FeignRequestMappingHandlerMapping extends RequestMappingHandlerMapping {
		@Override
		protected boolean isHandler(Class<?> beanType) {
			return super.isHandler(beanType) && !AnnotatedElementUtils.hasMetaAnnotationTypes(beanType, FeignClient.class);
		}
	}

}
*/
